package com.yuan.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

@Data
public class SysRole extends BaseEntiy{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer roleId;
    //角色名称
    @TableField("role_name")
    private String roleName;

    //角色编码
    @TableField("role_key")
    private String roleKey;

    // role_sort
    @TableField("role_sort")
    private Integer roleSort;

    // status 0 未启用 1 启用
    @TableField("status")
    private Integer status;

    // del_flag 0 存在 2 删除
    @TableLogic(value = "0",delval = "2")
    @TableField("del_flag")
    private Integer delFlag;

    //描述
    @TableField("remark")
    private String remark;

}
